package com.itop.demo.base

import android.app.Application
import com.alibaba.android.arouter.launcher.ARouter
import com.blankj.utilcode.util.AppUtils
import com.blankj.utilcode.util.SPUtils
import com.blankj.utilcode.util.Utils

/**
 * Title:TODO
 * Description:TODO
 * Company:
 * Author:jin.li.o
 * Date:2018/9/21
 * Version 1.0
 */
class IAppliction : Application() {

    override fun onCreate() {
        super.onCreate()
        Utils.init(this)

        if (AppUtils.isAppDebug()) {
            ARouter.openLog()     // Print log
            ARouter.openDebug()   // Turn on debugging mode (If you are running in InstantRun mode, you must turn on debug mode! Online version needs to be closed, otherwise there is a security risk)
        }

        SPUtils.getInstance().put()
    }
}